import { GroupData } from "babylon-lib/data/base-data";
import { Vector3Data } from "babylon-lib/data/datas/vector3-data";
import { Vector3 } from '@babylonjs/core/Maths/math.vector';
import { BooleanData } from 'babylon-lib/data/datas/boolean-data';


/**
 * 数据：
 * rootData:{
 *      isProduction:boolean data,
 *      cameraData:{
 *          cameraPosition:Vector3 data, 
 *          cameraTarget:Vector3 data, 
 *      },
 * };
 * 动作：
 *      resetScene:boolean data,
 *      resetSight:booean data,
 */


const rootData = new GroupData();

const isProduction=new BooleanData(false);

const cameraData = new GroupData();
const cameraPosition = new Vector3Data(new Vector3(0,1.6,2));
const cameraTarget = new Vector3Data(new Vector3(0,1.6,0));
cameraData.add(cameraPosition, cameraTarget);

rootData.add(
    cameraData,
);


export {
    rootData,isProduction,
    cameraData, cameraPosition, cameraTarget,
};